package cn.zwh;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class ButtonListener implements GoBangconfig,ActionListener{
    public GoBangframe gf;

    public ButtonListener(GoBangframe gf) {
        this.gf=gf;
    }
    public void actionPerformed(ActionEvent e) {
        if(e.getActionCommand().equals("开始新游戏")) {
            frameListener fl=new frameListener();
            fl.setGraphics(gf);
            gf.addMouseListener(fl);
        }
    }

}